﻿<?php
include ("../conn.php");
$sql="select * from qiye";
$query=mysqli_query($con,$sql);
$row=mysqli_fetch_array($query,MYSQLI_ASSOC);
if(isset($_POST['submit']))
{
	$upsql="update qiye set qq='".$_POST['qq']."',tel='".$_POST['tel']."',chuanzhen='".$_POST['chuanzhen']."', address='".$_POST['address']."', email='".$_POST['email']."', jishutel='".$_POST['jishutel']."', yewuname='".$_POST['yewuname']."', jishuname='".$_POST['jishuname']."', icp='".$_POST['icp']."', name='".$_POST['name']."', yuming='".$_POST['yuming']."'";
	mysqli_query($con,$upsql);
}
?>
<form method=POST action="">
	网站配置：<br />
qq：<input type=text name=qq value=<?php echo $row['qq']?> ><br />
电话：<input type=text name=tel value=<?php echo $row['tel']?>><br />
传真：<input type=text name=chuanzhen value=<?php echo $row['chuanzhen']?>><br />
地址：<input type=text name=address value=<?php echo $row['address']?>><br />
邮箱：<input type=text name=email value=<?php echo $row['email']?>><br />
技术咨询电话：<input type=text name=jishutel value=<?php echo $row['jishutel']?>><br />
业务部负责人：<input type=text name=yewuname value=<?php echo $row['yewuname']?>><br />
技术部负责人：<input type=text name=jishuname value=<?php echo $row['jishuname']?>><br />
备案号：<input type=text name=icp value=<?php echo $row['icp']?>><br />
企业名称：<input type=text name=name value=<?php echo $row['name']?>><br />
企业网站域名：<input type=text name=yuming value=<?php echo $row['yuming']?>><br />
<input type=submit value=修改网站配置 name=submit>
</form>